<?php 
$sql = "ALTER TABLE `$tablename` ADD `$field` INT(10) UNSIGNED NOT NULL DEFAULT '0'";
$db->query($sql);
?>